#########################
# 【测试】语音交互
#########################
import pyttsx3
from service import music_service

if __name__ == '__main__':
    pp = pyttsx3.init()
    while True:
        words = input('模拟用户输入：播放xxx的歌\n')
        # words = '播放陈奕迅的歌'
        singer = words[2:5]
        song_name = words[6:]
        pp.say('正在为你播放%s的%s' % (singer, song_name))
        pp.runAndWait()
        music_service.play_music(singer, song_name)

7